package org.zerg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.zerg.entity.Order;
import org.zerg.entity.OrderProducts;

public interface OrderDao {

	int insertOrder(Order order);
	
	List<Order> getOrderPage(@Param("startpage")int startpage,@Param("uid")int uid);
	
	List<Order> getOrderAllPage(@Param("startpage")int startpage);
	
	int insertOrderProducts(List<OrderProducts> list);
	
	Order getOrderByNo(String no);
	
	Order getOrderById(int id);
	
	int getOrderTotal();
	
	List<OrderProducts> getProductByOrder(String no);
	
	int setStatus(@Param("id")int id,@Param("classId")int classId);

	int getOrderTotalByUser(@Param("id")int id);

	List<Order> getOrderByUserPage(@Param("i")int i, @Param("id")int id);

	//获取所有订单商品-----报表统计
	List<OrderProducts> getOrderProductAll();

	//获取所以订单---主要获取时间
	List<Order> getOrderAll();
}
